<?php
class Info extends Controller {
	public function json() {
		$tid = $this->post('tid', 'int');
		if(!$tid) $this->displayJSON(array('status' => -1, 'message' => '未知门票ID'));
		
		$mTicket = new Ticket_model();
		//获取票信息
		$params = array('tid' => $tid);
		$result = $mTicket->info($params);
		if($result) $this->displayJSON(array('status' => 0, 'data' => $result));
		else $this->displayJSON(array('status' => -2, 'message' => '未知门票ID'));
	}
}